package xworker.lang.util.codeassist.textassists;

public class CodeTypeHepler {
    public boolean containsCodeType(String codeTypes, String ... targetType){
        if(codeTypes == null || codeTypes.isEmpty()){
            return false;
        }

        for(String codeType : codeTypes.split("[,]")){
            for(String type : targetType) {
                if (codeType.trim().equalsIgnoreCase(type)){
                    return true;
                }
            }
        }

        return false;
    }
}
